package Day05;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int[] arr=new int[5];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=sc.nextInt();
        }
        bl(arr);
        fanz(arr);
        System.out.println();
        bl(arr);

    }
        public static void bl(int[] arr){
            System.out.print("[");
            for (int i = 0; i < arr.length; i++) {
                if(i==arr.length-1){
                    System.out.print(arr[i]+"]");
                }else {
                    System.out.print(arr[i]+", ");
                }
            }
        }
        public static void fanz(int[] arr){
            for (int i = 0; i < arr.length/2; i++) {
                int num=arr[i];
                arr[i]=arr[arr.length-1-i];
                arr[arr.length-1-i]=num;
            }
        }
}
